<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 *      [PinTuXiu] (C)2001-2099 ONightjar.com Pintuxiu.com.
 *      This is NOT a freeware, use is subject to license terms
 */

class eventrule_db extends Model{
	public $pk = 'event_id';
	public $table = 'ptx_event';
	
	public function getEventByCode($code){
		return $this->find(array('event_code'=>$code));
	}
	
}